<template>
  <div>
   <detail  :records="records" />
  </div>
</template>

<script>
import detail from './detail.vue'
import {getDilivery,getDetail} from '../../request/api'
export default {
 data(){
   return{
     records:[],
     
   }
 },
 components:{
   detail
 },
 created(){
   getDilivery({
     current:1,
     size:10,
     keyword:''   
   }).then(res=>{
     console.log(res.data);
     this.records=res.data.records
     
   })
 },
 methods:{
       detail(val){
         getDetail(val).then(res=>{
           console.log(res.data);
         })
       },
     
 }
}
</script>

<style lang='less' scoped>
.list{
  margin: 5% 0;
}
</style>